package com.zhang.cloud;


import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.Bean;

@EnableHystrixDashboard
@SpringBootApplication//想要监控8001，首先，其pom文件中需要引入spring-boot-starter-actuator，其次8001的启动类需要添加部分配置
public class HystrixDashboard9001 {

     public static void main(String[] args) {
           SpringApplication.run(HystrixDashboard9001.class, args);

      }



}
